package com.syyai.spring.boot.starter.demo.urule.action;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.bstek.urule.model.library.action.annotation.ActionBean;
import com.bstek.urule.model.library.action.annotation.ActionMethod;
import com.bstek.urule.model.library.action.annotation.ActionMethodParameter;

@ActionBean(name="Map工具")
@Component
public class MapMethod {

	@ActionMethod(name="取Map键列表")
	@ActionMethodParameter(names= {"Map对象"})
	public List getMapKeyList(Map map) {
		List<Object> list = new ArrayList<Object>();
		for (Object key : map.keySet()) {
			list.add(key);
		}
		return list;
	}
	
}
